package com.dh.blog.service;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.dh.blog.vo.ClassifyVo;

@Repository
public interface ClassifyService {
	/**
	 * 增加类别
	 */
	public void doCreateOne(ClassifyVo classify);
	/**
	 * 根据名字搜索
	 * @param name
	 * @return
	 */
	public ClassifyVo getByName(String name);
	/**
	 * 删除类别
	 * @param classifyId
	 * @return
	 */
	public int doDeleteOne(Integer classifyId);
	/**
	 * 列举博客所有类别
	 * @param blogId
	 */
	public List<ClassifyVo> listAllByBlog(String blogId);
}
